package com.hc.radius.service;

public class Const {
	public static int MAX_LEN_TERMINAL = 8;
	public static int MAX_LEN_SERVNAME = 8;
	public static int MAX_LEN_DLGCTRL = 6;
	public static int MAX_LEN_TXID = 8;
	public static int MAX_LEN_TXCTRL = 6;
	public static int MAX_LEN_TXRSVD = 4;
	public static int MAX_MSG_LEN = 65536;
	public static int MAX_HEAD_LEN = 56;
	public static int MSG_STARTTAG_LEN =4;
	public static int MSG_INFOLEN_LEN = 4;
	public static int MSG_CHKSUM_LEN = 4;    //AAA
	//public static int MSG_CHKSUM_LEN   8  //AAA
	public static int MSG_COMM_LEN =12;
	public static int MAX_HB_MSG_LEN =4;
	public static int MAX_HB_CONTENT_LEN =4;
	public static int MAX_HB_CHCKSUM =4;      //AAA
	//public static int MAX_HB_CHCKSUM 8      //IIN
	public static int HB_MSG_LEN =4;
	public static int MAX_LEN_DLGID =8;
	public static int MAX_LEN_DLGRSVD =4;
//	public static String MSG_STARTTAG ="\\x1C\\x1D\\x1E\\x1F";     //AAA
	public final static byte[] MSG_START_TAG = {28,29,30,31}; //AAA
	//public static int MSG_STARTTAG "\x60\x53\x43\x60"     //IIN
	public static byte[] MSG_VERSION ={49,46,48,48}; //"1.00"; // 
	public static byte[] MSG_TERMINAL ={105,110,116,101,114,110,97,108};
	public static byte[] MSG_TXRSVD = {48,48,48,48};
	public static byte[] MSG_TXCON = {84,88,67,79,78,32};
	public static byte[] MSG_TXBEG = {84,88,66,69,71,32};

	public static byte[] HB_CONTENT ={72,66,72,66};
	public static byte[] MSG_SERVICE_NAME_C280 = {32,32,32,32,67,50,56,48};
	public static byte[] MSG_SERVICE_NAME_SRVM = {32,32,32,32,83,82,86,77};
	public static byte[] MSG_DLGRSVD ={48,48,48,48};
	public static byte[] MSG_DLGCON = {68,76,71,67,79,78};
	public static byte[] MSG_DLGLGN = {68,76,71,76,71,78};
	
	//extern
	public static int SUCCESS =0;
	public static int FAILTURE =-1;

	public static int TYPE_OF_HB_MSG= 0;
	public static int TYPE_OF_CMD_MSG =1;

	public static byte[] SESSION_ID ={48,48,48,48,48,48,53,56};
	
	public static byte[] TRANS_ID = {48,48,48,48,48,48,48,49};


	public static String CMD_USERIPADDRESS ="QUERY C280 USERSESS: SERVICEFLAG=AAA,USERIPADDRESS=168119467";
	//"QUERY C280 USER:LOGINNAME="; 
	public static byte[]  QUERY_C280_USER = {81,85,69,82,89,32,67,50,56,48,32,85,83,69,82,58,76,79,71,73,78,78,65,77,69,61};
	//QUERY C280 USERSESS: SERVICEFLAG=AAA,DOMAIN=-1,USERNAME=;
	public static byte[]  QUERY_C280_USERSESS = {81,85,69,82,89,32,67,50,56,48,32,85,83,69,82
		,83,69,83,83,58,32,83,69,82,86,73,67,69,70,76,65,71,61,65,65,65,44,68,79,77,65,73,78,61,45,49,44,85,83,69,82,78,65,77,69,61};
//	"QUERY C280 ORDER:LOGINNAME=";
	public static byte[] QUERY_C280_ORDER = {81,85,69,82,89,32,67,50,56,48,32,79,82,68,69,82,58,76,79,71,73,78,78,65,77,69,61};
	//"LOGIN:USER="
	public static byte[] CMD_LOGIN = {76,79,71,73,78,58,85,83,69,82,61};
	//"logout"
	public static byte[] CMD_LOGOUT = {108,111,103,111,117,116,58,85,83,69,82,61};
	
	//",PSWD="
	public static byte[] CMD_PASWD = {44,80,83,87,68,61};
	
}
